package global

import (
	"github.com/go-redis/redis"
	"github.com/jmoiron/sqlx"
	"go-learn/config"
	"go.mongodb.org/mongo-driver/mongo"
)

var (
	// Config 配置文件
	Config config.Cfg

	GvaMongodb *mongo.Database
	GvaRedis   *redis.Client
	GvaMysql   *sqlx.DB

	KeyName         string = "player"
	MongoCollection string = "user"
)

// Redis常量
var (
	// 用户数据db
	UserDataDb int = 0
	// 排行榜集合名
	RankKeyName string = "rank"
)
